package com.njupt.user.service;

import com.njupt.user.dao.GradeMapper;
import com.njupt.user.model.Grade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by ASUS on 2019/5/6.
 */
@Service("GradeService")
public class GradeServiceimpl implements GradeService {
    @Autowired
    private GradeMapper gradeMapper;
    public List<Grade> selectGrade(Map<String, String> map) {
        return gradeMapper.selectGrade(map);
    }
    public void register(Grade grade) {
        gradeMapper.addGrade(grade);
    }
    public void updateGrade(Map<String, String> map) {
         gradeMapper.updateGrade(map);
    }

}
